package com.beiding.businessplatform.data;

import java.util.Map;

public class HolderMap {

    private Map<String, Holder> holderMap;

    public Holder get(String name) {
        Holder holder = holderMap.get(name);
        if (holder == null) {
            throw new RuntimeException("无此字段:" + name);
        }
        return holder;
    }

    public HolderMap(Map<String, Holder> holderMap) {
        this.holderMap = holderMap;
    }
}
